Learn R Programming

Compositional (version 5.5)

The ESOV-distance: The ESOV-distance

Description

The ESOV-distance.

Usage

esov(x)
esova(xnew, x)
es(x1, x2)

Arguments

x

A matrix with compositional data.

xnew

A matrix or a vector with new compositional data.

x1

A vector with compositional data.

x2

A vector with compositional data.

Value

For "esov" a matrix including the pairwise distances of all observations or the distances between xnew and x. For "esova" a matrix including the pairwise distances of all observations or the distances between xnew and x. For "es" a number, the ESOV distance between x1 and x2.

Details

The ESOV distance is calculated.

References

Tsagris, Michail (2014). The k-NN algorithm for compositional data: a revised approach with and without zero values present. Journal of Data Science, 12(3): 519-534.

Endres, D. M. and Schindelin, J. E. (2003). A new metric for probability distributions. Information Theory, IEEE Transactions on 49, 1858-1860.

Osterreicher, F. and Vajda, I. (2003). A new class of metric divergences on probability spaces and its applicability in statistics. Annals of the Institute of Statistical Mathematics 55, 639-653.

See Also

alfadist, comp.knn, js.compreg

Examples

Run this code
# NOT RUN {
library(MASS)
x <- as.matrix(fgl[1:20, 2:9])
x <- x / rowSums(x)
esov(x)
# }

Run the code above in your browser using DataLab